#ifndef _ESP8266_MQTT_H
#define _ESP8266_MQTT_H

#include "esp8266.h"

#define ESP_WIFI_SSID 		"xgcl"
#define ESP_WIFI_PASSWORD "qq1943057409"
/*
#define MQTT_CLIENT_ID "a1T5sBQ7c9B.device001|securemode=2\\,signmethod=hmacsha256\\,timestamp=1676203059548|"
#define MQTT_USERNAME  "device001&a1T5sBQ7c9B"
#define MQTT_PASSWORD  "05d278979690eee70feab2890f105e4a2d6bfaa1fcf986386274c959fb6abce5"

#define MQTT_BROKER_IP  "a1T5sBQ7c9B.iot-as-mqtt.cn-shanghai.aliyuncs.com"
#define MQTT_BROKER_PORT  1883
		
#define MQTT_TOPIC_DEVICE_RECV  "/sys/a1T5sBQ7c9B/device001/thing/service/property/set"
#define MQTT_TOPIC_DEVICE_SEND  "/sys/a1T5sBQ7c9B/device001/thing/event/property/post"
*/

#define MQTT_CLIENT_ID "196UIAQ9THdevice001"
#define MQTT_USERNAME  "196UIAQ9THdevice001;12010126;QOCRD;1737858979"
#define MQTT_PASSWORD  "7089dcec22b3d02e6cae4d40b4b516b3431059d618637d475626e2d2a4975d94;hmacsha256"

#define MQTT_BROKER_IP  "196UIAQ9TH.iotcloud.tencentdevices.com"
#define MQTT_BROKER_PORT  1883
		
#define MQTT_TOPIC_DEVICE_RECV  "$thing/down/property/196UIAQ9TH/device001"
#define MQTT_TOPIC_DEVICE_SEND  "$thing/up/property/196UIAQ9TH/device001"


uint8_t mqtt_init(void);
uint8_t mqtt_subscribe(char *topic, uint8_t Qos);
uint8_t mqtt_unsubscribe(char *topic);
uint8_t mqtt_close(char *topic);
uint8_t mqtt_publish(char *topic, char *msg);














#endif

